import os
molfile = open("xxx.msd")

pin, pout, perr = popen3("dffjob.exe")

pin.write("#DFF: Typing DFF\n")
pin.write('mol = dffpy.parse_mol("""\n')
pin.write(molfile.read())
pin.write('""", "msd")\n')
pin.write('types = dffpy.get_default_types(mol)')

molfile.close()

types = []
for i in pout:
	if i.strip().starts("Job Finished at"):
		break
	else:
		types.append(i)



